package cn.changeforyou.web.cloud.gateway.test.spi;

import cn.changeforyou.web.cloud.gateway.test.spi.Car;

public class CarWrapper implements Car {

    private Car car;

    /**
     * 有一个包含该接口类参数的构造方法
     */
    public CarWrapper(Car car) {
        this.car = car;
    }

    @Override
    public String getBrand() {
        System.out.println("校验");
        String result = car.getBrand();
        System.out.println("记录日志");
        return result;
    }
}
